package org.smile.design.compose;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Folder extends Node {
    private List<Node> nodes = new ArrayList<>();

    public Folder(String name) {
        super(name);
    }

    @Override
    public void print() {
        super.print();
        if (nodes.size() != 0) {
            for (Node node : nodes) {
                node.print();
            }
        }
    }
}
